package com.teacher.logs;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zfm
 * @since 2020-04-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="OptionLog对象", description="")
public class OptionLog extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "业务名称")
    private String title;

    @ApiModelProperty(value = "日志类型 10:操作日志 20:错误日志")
    private Integer logType;

    @ApiModelProperty(value = "请求IP")
    private String address;

    @ApiModelProperty(value = "请求资源路径")
    private String url;

    @ApiModelProperty(value = "请求方式")
    private String reqMethod;

    @ApiModelProperty(value = "请求参数")
    private String reqParam;

    @ApiModelProperty(value = "返回参数")
    private String resParam;

    @ApiModelProperty(value = "异常信息")
    private String exception;

    @ApiModelProperty(value = "耗时")
    private String timeout;

    @ApiModelProperty(value = "用户唯一编号")
    private Long userId;

    @ApiModelProperty(value = "用户姓名")
    private String username;
}
